var mongoose = require('../db_con')

//班级表
var classschema = mongoose.Schema({
    class_id: {
        type: String,
        require: true,
        unique: true,
        dropDups: true
    },//班号，主键
    class_name: {
        type: String,
        required: true
    }//班名，必须存在
    })


var ClassModel = mongoose.model('Class', classschema, 'class')

module.exports = ClassModel;//暴露模块